package top.byfree.jbyan.saber.bean.dto

/**
 * 条件筛选用户请求实体
 *
 * @author jbyan
 * @since 22/3/2024
 */
data class PageDto<T>(
    val modelList: List<T>,
    val total: Int,
    val current: Int,
    val size: Int,
    val count: Int =
        if (total % size == 0) {
            total / size
        } else {
            total / size + 1
        }
)